package com.ruoyi.web.controller.aj;

import com.ruoyi.aj.domain.AdmContacts1;
import com.ruoyi.aj.domain.Case_case_type;
import com.ruoyi.aj.domain.Case_law;
import com.ruoyi.aj.service.IWdajService;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Wang
 * @Date: 2024/6/11 15:35
 * @Description:
 */
@RestController
@RequestMapping("/wdaj")
@DataSource(DataSourceType.SLAVE)
public class WdajController {
    @Autowired
    private IWdajService service;
    @GetMapping("/list1")
    public  Object query(){
        List<Case_law> list =service.list();
        return list;
    }

}
